package com.simons.module.export;
//package com.cndatacom.module.export;
//
//import java.io.File;
//import java.util.List;
//import java.util.Map;
//
//import javax.annotation.Resource;
//
//import org.springframework.stereotype.Service;
//
//import com.cndatacom.otreport.entiy.CountAndUser;
//import com.cndatacom.otreport.enums.PlanType;
//import com.cndatacom.otreport.service.OvertimeTimeCountService;
//import com.cndatacom.otreport.utils.PathUtil;
//
//@Service
//public class OvertimeTimeCountExportService extends AbstractExportService{
//	private static final String FILENAMEHEAD = "countExport_";
//
//	private static final String SHEETNAME = "工时报表";
//
//	private static final String[] FIELDNAMES = new String[] { "userName", "remainderTime", "totalOvertimeTime", "totalTalkWorking" ,"totalSettleAccountTime"};
//
//	private static final String[] HEADERS = new String[] { "用户名" , "当前剩余总工时" , "历史累计总工时", "用户调休总工时", "用户结算总工时"};
//	
//	private static final String PROJECTNAME = "OverTimeReport" + PathUtil.FILE_SEPARATOR + "export";
//	
//	@Resource
//	private OvertimeTimeCountService overtimeTimeCountService;
//	
//	
//	public OvertimeTimeCountExportService()throws Exception{
//		super.headers = HEADERS;
//		super.sheetName = SHEETNAME;
//		super.fieldNames = FIELDNAMES;
//		super.exportFileNamePre = FILENAMEHEAD;
//		super.exportType = PlanType.REPORT;
//		super.exportPlace = PathUtil.getRootPath(PROJECTNAME);
//	}
//
//	@Override
//	@Deprecated
//	public File export(String params) throws Exception {
//		// TODO Auto-generated method stub
//		return null;
//	}
//
//	@Override
//	public File export(Map<String, Object> params) throws Exception {
//		List<CountAndUser> countAndUserList = overtimeTimeCountService.selectOverTimeInfoByUserId(params);
//		return super.export(countAndUserList);
//	}
//
//}
